package com.happly.happlycloud.service;

import com.github.pagehelper.PageInfo;
import com.happly.happlycloud.common.ServerResponse;
import com.happly.happlycloud.pojo.TutorInfo;
import com.happly.happlycloud.vo.MessageDetailVo;

public interface IMessageService {

    ServerResponse<String> deleteMessage(Integer messageId);

    ServerResponse<MessageDetailVo> manageMessageDetail(Integer messageId);

    ServerResponse<PageInfo> getMessageList(int pageNum, int pageSize);

    ServerResponse<PageInfo> searchMessage(String userName, Integer messageId, int pageNum, int pageSize);

    ServerResponse<PageInfo> getTutorMessageList(Integer id, int pageNum, int pageSize);

    ServerResponse<PageInfo> searchMessageTutor(String userName, int pageNum, int pageSize);

    ServerResponse addMessage(Integer id,TutorInfo tutorInfo);

    ServerResponse<PageInfo> getApplyMessageList(int pageNum, int pageSize);

    ServerResponse sureMessage(Integer id);

    ServerResponse<PageInfo> searchApplyMessage(Integer userId,Integer history, int pageNum, int pageSize);

    ServerResponse refuseMessage(Integer id);
}
